package com.skyeyes.controller;

import com.skyeyes.result.Result;
import com.skyeyes.utils.BaiduMapUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/trace")
@Slf4j
public class TraceController {


    @GetMapping
    public Result getTrace(){

        try {
            String traceGUIJI = BaiduMapUtil.getTraceGUIJI();
            return Result.success(traceGUIJI);
        } catch (Exception e) {
            return Result.error(e.getMessage());
        }


    }
}
